<mat-list [attr.dense]="dense ? true : null">
  <ng-template let-line let-last="last" ngFor [ngForOf]="lines">
    <mat-list-item>
      <h4 matListItemTitle>
        {{ line.line }}
      </h4>
      <p *ngFor="let subline of line.sublines" matListItemLine>
        {{ subline }}
      </p>
    </mat-list-item>
    <mat-divider *ngIf="!last"></mat-divider>
  </ng-template>
</mat-list>
